/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Entity;

/**
 *
 * @author Administrator
 */
public class E_Complaint {
    private int complaintID;
    private int dispatchNo;
    private String comTitle;
    private String comContent;
    private String comDate;
    private int cusID;
    private int departmentID;
    private byte status_1;
    private byte status_2;
    private String transferDate;

    public E_Complaint(){
        this.complaintID=0;
        this.dispatchNo=0;
        this.comTitle="";
        this.comContent="";
        this.comDate="";
        this.cusID=0;
        this.departmentID=0;
        this.status_1=0;
        this.status_2=0;
        this.transferDate="";
    }

    public E_Complaint(int complaintID,int dispatchNo,String comTitle,String comContent,
             String comDate,int cusID){
        this.complaintID=complaintID;
        this.dispatchNo=dispatchNo;
        this.comTitle=comTitle;
        this.comContent=comContent;
        this.comDate=comDate;
        this.cusID=cusID;
    }

    public E_Complaint(int complaintID,int dispatchNo,String comTitle,String comContent,
             String comDate,int cusID,int departmentID,byte status_1,byte status_2,String transferDate){
        this.complaintID=complaintID;
        this.dispatchNo=dispatchNo;
        this.comTitle=comTitle;
        this.comContent=comContent;
        this.comDate=comDate;
        this.cusID=cusID;
        this.departmentID=departmentID;
        this.status_1=status_1;
        this.status_2=status_2;
        this.transferDate=transferDate;
    }

    public void setComplaintID(int complaintID){
        this.complaintID=complaintID;
    }
    public int getComplaintID(){
        return this.complaintID;
    }

    public void setComplaintDispatchNo(int dispatchNo){
        this.dispatchNo=dispatchNo;
    }
    public int getComplaintDispatchNo(){
        return this.dispatchNo;
    }

    public void setComplaintTitle(String comTitle){
        this.comTitle=comTitle;
    }
    public String getComplaintTitle(){
        return this.comTitle;
    }

    public void setComplaintContent(String comContent){
        this.comContent=comContent;
    }
    public String getComplaintContent(){
        return this.comContent;
    }

    public void setComplaintDate(String comDate){
        this.comDate=comDate;
    }
    public String getComplaintDate(){
        return this.comDate;
    }

    public void setComplaintCustomerID(int cusID){
        this.cusID=cusID;
    }
    public int getComplaintCustomerID(){
        return this.cusID;
    }

    public void setComplaintDepartmentID(int departmentID){
        this.departmentID=departmentID;
    }
    public int getComplaintDepartmentID(){
        return this.departmentID;
    }

    public void setComplaintStatus1(byte status_1){
        this.status_1=status_1;
    }
    public byte getComplaintStatus1(){
        return this.status_1;
    }

    public void setComplaintStatus2(byte status_2){
        this.status_2=status_2;
    }
    public byte getComplaintStatus2(){
        return this.status_2;
    }

    public void setCoimplaintTransferDate(String transferDate){
        this.transferDate=transferDate;
    }
    public String getCoimplaintTransferDate(){
        return this.transferDate;
    }

    public String toString(){
        String comInfo="ComplaintID : "+complaintID;
               comInfo+="\nTitle : "+comTitle;
               comInfo="\nContent : "+comContent;
               comInfo="\nDate : "+comDate;
               comInfo="\nCustomerID : "+cusID;
               comInfo="\nDepartmentID : "+departmentID;
               if(status_1==0)
                   comInfo+="\nStatus 1 : Un_replied";
               else
                   comInfo+="\nStatus 1 : Replied";
               if(status_2==0){
                   comInfo+="\nStatus 2 : Un_Transfer";
               }
               else{
                   comInfo+="\nStatus 2 : Tranfer";
                   comInfo+="\nTransfer date : "+transferDate;
               }
               
        return comInfo;
    }
}
